const Layout = () => import("/@/layout/index.vue");

const execSqlRouter = [
  {
    path: "/system",
    component: Layout,
    meta: {
      icon: "setting",
      title: "系统管理"
    },
    redirect: "/system/datasource",
    children: [
      {
        path: "/system/datasource",
        name: "system-datasource",
        component: () => import("/@/views/system/datasource/index.vue"),
        meta: {
          title: "数据源管理",
          i18n: true,
          keepAlive: true
        } /*,
        children: [
          {
            path: "/system/datasource/add/:id",
            name: "system-datasource-add",
            component: () => import("/@/views/system/datasource/edit.vue"),
            meta: {
              title: "数据源添加",
              showLink: false
            }
          },
          {
            path: "/system/datasource/update/:id",
            name: "system-datasource-update",
            component: () => import("/@/views/system/datasource/edit.vue"),
            meta: {
              title: "数据源修改",
              showLink: false
            }
          }
        ]*/
      },
      {
        path: "/system/sqlSnippet",
        name: "system-sqlSnippet",
        component: () => import("/@/views/system/sqlSnippet/index.vue"),
        meta: {
          title: "SQL片段管理",
          i18n: true,
          keepAlive: true
        }
      },
      {
        path: "/system/commonValidator",
        name: "system-commonValidator",
        component: () => import("/@/views/system/commonValidator/index.vue"),
        meta: {
          title: "参数验证管理",
          i18n: true,
          keepAlive: true
        }
      },
      {
        path: "/system/sql",
        name: "system-sql",
        component: () => import("/@/views/system/sql/index.vue"),
        meta: {
          title: "动态SQL管理",
          i18n: true,
          keepAlive: true
        }
      }
    ]
  }
];

export default execSqlRouter;
